package com.e3roid.examples;

import com.e3roid.E3Engine;
import com.e3roid.opengl.RenderSurfaceView;

public class XMLLayoutExample2 extends XMLLayoutExample {

	private final static int WIDTH  = 320;
	private final static int HEIGHT = 440;

	@Override
	protected void onSetContentView() {
		this.setContentView(R.layout.xmllayout2);
		this.surfaceView = (RenderSurfaceView)this.findViewById(R.id.xmllayout_view2);
		this.surfaceView.setRenderer(this.engine);		
	}
	
	@Override
	public E3Engine onLoadEngine() {
		E3Engine engine = new E3Engine(this, WIDTH, HEIGHT, E3Engine.RESOLUTION_FIXED_RATIO);
		engine.requestFullScreen();
		engine.requestPortrait();
		return engine;
	}
}
